<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

	<!--
@desc 短信设置 添加
@author WeiXiaoJin
@since 2020-01-20 12:02:03
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">键代码</label>
										<div class="col-md-9">
											<input class="form-control" id="settingsCode" type="text"
												name="settingsCode" placeholder="键代码">
										</div>
									</div>
									
									<!-- 
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">键过滤</label>
										<div class="col-md-9">
											<input class="form-control" id="settingsFilter" type="text"
												name="settingsFilter" placeholder="键过滤">
										</div>
									</div>
									 -->
									 
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">键名称</label>
										<div class="col-md-9">
											<input class="form-control" id="settingsName" type="text"
												name="settingsName" placeholder="键名称">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">键值 </label>
										<div class="col-md-9">
											<input class="form-control" id="settingsValue" type="text"
												name="settingsValue" placeholder="键名称">
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm");
		$(function() {
			addForm.validate({
				ignore : [],
				rules : {
					settingsCode : {
						required : true
					},
					settingsName : {
						required : true
					},
					settingsValue : {
						required : true
					}
				}
			});
		});

		function submitHandler() {
			var result = $.validate.form("addForm");
			if (result) {
				var saveUrl = ctx + "base/notice/smsSettings/save";
				$.operate.save(saveUrl, addForm.serialize());
			}
		}
	</script>

</body>
</html>


